package io.modifier.basic.compose.hooks.android

import android.view.WindowManager
import androidx.compose.runtime.Composable
import io.modifier.basic.compose.hooks.comm.IsActive
import io.modifier.basic.compose.hooks.comm.KEY_PREFIX

@Composable
fun useWakeLock(): Triple<RequestFn, ReleaseFn, IsActive> = useWindowFlags(
    key = "${KEY_PREFIX}WAKE_LOCK",
    flags = WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON
)
